

package com.kzj.mls.recyclerCard.cardView;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.kzj.mls.R;
import com.kzj.mls.activity.MoneyActivity;
import com.kzj.mls.recyclerCard.basic.CardItemView;
import com.kzj.mls.recyclerCard.card.other.MoneyCalculateCard;


public class MoneyCalculateCardView extends CardItemView<MoneyCalculateCard> {
 	private Context mContext;
    public MoneyCalculateCardView(Context context) {
        super(context);
        mContext=context;
        // TODO Auto-generated constructor stub
    }

    public MoneyCalculateCardView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mContext=context;
        // TODO Auto-generated constructor stub
    }

    public MoneyCalculateCardView(Context context,
                                    AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        mContext=context;
        // TODO Auto-generated constructor stub
    }
    @Override
    public void build(MoneyCalculateCard card) {
        // TODO Auto-generated method stub
        super.build(card);
         TextView textView_ddh;
         TextView textView_zt;
         TextView textView_xm;
         TextView textView_goods_price;
         TextView textView_shiji_price;
         TextView textView_jiesuan_price;
        textView_ddh = (TextView) findViewById(R.id.textView_ddh);
        textView_zt = (TextView) findViewById(R.id.textView_zt);
        textView_xm = (TextView) findViewById(R.id.textView_xm);
        textView_goods_price = (TextView) findViewById(R.id.textView_goods_price);
        textView_shiji_price = (TextView) findViewById(R.id.textView_shiji_price);
        textView_jiesuan_price = (TextView) findViewById(R.id.textView_jiesuan_price);


        textView_ddh.setText("订单号:  "+card.getOrderListEntity().getOrder_sn());
        textView_zt.setText(card.getOrderListEntity().getOrder_status());
        textView_xm.setText("项目:  "+card.getOrderListEntity().getGoods_name());
        textView_goods_price.setText("价格:  "+card.getOrderListEntity().getGoods_amount());
        textView_shiji_price.setText("实际支付:  "+card.getOrderListEntity().getOrder_amount());
        textView_jiesuan_price.setText("结算金额:  "+card.getOrderListEntity().getOrder_commission());

        if (card.getOrderListEntity().getOrder_status().equals(MoneyActivity.qb))
        {

        }else if (card.getOrderListEntity().getOrder_status().equals(MoneyActivity.djs))
        {

        }else if (card.getOrderListEntity().getOrder_status().equals(MoneyActivity.kjs))
        {

        }else if (card.getOrderListEntity().getOrder_status().equals(MoneyActivity.yjs))
        {

        }
    }
}
